From: Colin Walters Date: Fri, 14 Apr 2017 17:18:03 +0000 (-0400) Subject: repo: Drop unused cache variables leftover from pack files X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~37^2~79 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/?a=commitdiff_plain;h=4fc65b808a59d2e0426c7d6d469a19787bdfd7c7;p=ostree.git repo: Drop unused cache variables leftover from pack files These are leftovers from the packfile code and should have been deleted in commit: 2a0601efc790a0c8f783043f2db682eec9ceffaa I noticed this now since I wanted to add a new type of caching. Closes: #795 Approved by: jlebon --- diff --git a/src/libostree/ostree-repo-private.h b/src/libostree/ostree-repo-private.h index b1a58d61..fa18947e 100644 --- a/src/libostree/ostree-repo-private.h +++ b/src/libostree/ostree-repo-private.h @@ -92,8 +92,6 @@ struct OstreeRepo { OstreeRepoTransactionStats txn_stats; GMutex cache_lock; - GPtrArray *cached_meta_indexes; - GPtrArray *cached_content_indexes; gboolean inited; gboolean writable; diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c index 2df6a292..e5dbed25 100644 --- a/src/libostree/ostree-repo.c +++ b/src/libostree/ostree-repo.c @@ -536,8 +536,6 @@ ostree_repo_finalize (GObject *object) if (self->config) g_key_file_free (self->config); g_clear_pointer (&self->txn_refs, g_hash_table_destroy); - g_clear_pointer (&self->cached_meta_indexes, (GDestroyNotify) g_ptr_array_unref); - g_clear_pointer (&self->cached_content_indexes, (GDestroyNotify) g_ptr_array_unref); g_clear_error (&self->writable_error); g_clear_pointer (&self->object_sizes, (GDestroyNotify) g_hash_table_unref); g_mutex_clear (&self->cache_lock);